package com.disputemanager.utils;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
	
	private static final String format = "yyyy-MM-dd HH:mm";
	
	public static String getDateFromTimestamp(Timestamp t){
		
		SimpleDateFormat sdf = new SimpleDateFormat(format);
		Date d = new Date(t.getTime());
		
		return sdf.format(d);
	}

}
